package york.Game.Painting;

import java.awt.Graphics;
import java.awt.Point;

import york.Game.Vector2D;

public class Painter {
	public static void Paint(Graphics G,Vector2D a_Vec,int Size,PAINTING_METHODS a_Method) {
		Paint(G,new Point((int)a_Vec.x,(int)a_Vec.y),Size,a_Method);
	}
	public static void Paint(Graphics G,Point a_Point,int Size,PAINTING_METHODS a_Method) {
		switch(a_Method) {
		case EMPTY_OVAL:
			G.drawOval(a_Point.x - Size / 2, a_Point.y - Size / 2, Size, Size);
			break;
		case FILLED_OVAL:
			G.fillOval(a_Point.x - Size / 2, a_Point.y - Size / 2, Size, Size);
			break;
		default:
			ErrorString(G,a_Point);
		}
	}
	
	public static void Paint(Graphics G) {
		
	}
	
	public static final void ErrorString(Graphics G,Point a_Point) {
		G.drawString("Invalid Painting", a_Point.x, a_Point.y);
	}
}
